package com.stress.testing.common;

import com.stress.testing.common.conf.AgentConfig;
import com.stress.testing.common.conf.PluginConfig;

public class StressTesting {


    public static boolean enable(AgentConfig agentConfig, PluginConfig pluginConfig) {
        return agentConfig.enable() &&
                pluginConfig.enable();
    }

    public static boolean enable(AgentConfig agentConfig, PluginConfig pluginConfig, TraceContext traceContext) {
        return agentConfig.enable() &&
                pluginConfig.enable() &&
                traceContext != null &&
                traceContext.stressTestingEnable();
    }
}
